
public class Pismeno {
	
	DrawingTool dt;
	Bod bod;
	
	public Bod getBod() {
		return bod;
	}

	public void setBod(Bod bod) {
		this.bod = bod;
	}

	public int getVelikost() {
		return velikost;
	}

	public void setVelikost(int velikost) {
		Pismeno.velikost = velikost;
	}

	protected static int velikost = 150;

	public Pismeno(DrawingTool dt, Bod bod){
		super();
		this.dt = dt;
		this.bod = bod;
	}
	
	public void krouzek(){
		dt.line(bod.getX() + (int)(0.15 * velikost), bod.getY() - (int)(0.1 * velikost), 
				bod.getX() + (int)(0.15 * velikost), bod.getY() - (int)(0.3 * velikost));
		
		dt.line(bod.getX() + (int)(0.15 * velikost), bod.getY() - (int)(0.1 * velikost), 
				bod.getX() + (int)(0.35 * velikost), bod.getY() - (int)(0.1 * velikost));
		
		dt.line(bod.getX() + (int)(0.15 * velikost), bod.getY() - (int)(0.3 * velikost), 
				bod.getX() + (int)(0.35 * velikost), bod.getY() - (int)(0.3 * velikost));
		
		dt.line(bod.getX() + (int)(0.35 * velikost), bod.getY() - (int)(0.1 * velikost), 
				bod.getX() + (int)(0.35 * velikost), bod.getY() - (int)(0.3 * velikost));
	}
	
	public void carkaNad(){
		dt.line(bod.getX() + (int)(0.25 * velikost), bod.getY() - (int)(0.1 * velikost), 
				bod.getX() + (int)(0.3 * velikost), bod.getY() - (int)(0.25 * velikost));
	}
	
	public void hacek(){
		dt.line(bod.getX() + (int)(0.1 * velikost), bod.getY() - (int)(0.25 * velikost), 
				bod.getX() + (int)(0.15 * velikost), bod.getY() - (int)(0.1 * velikost));
		
		dt.line(bod.getX() + (int)(0.15 * velikost), bod.getY() - (int)(0.1 * velikost), 
				bod.getX() + (int)(0.35 * velikost), bod.getY() - (int)(0.1 * velikost));
		
		dt.line(bod.getX() + (int)(0.35 * velikost), bod.getY() - (int)(0.1 * velikost), 
				bod.getX() + (int)(0.4 * velikost), bod.getY() - (int)(0.25 * velikost));
	}
	
	public void carka(){
		dt.line(bod.getX() - (int)(0.3 * velikost), bod.getY() + (int)(0.9 * velikost), 
				bod.getX() - (int)(0.35 * velikost), bod.getY() + (int)(1.1 * velikost));
	}	
	
	public void c0(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY(),
				bod.getX() + (int)(0.5 * velikost), bod.getY());
		
		dt.line(bod.getX(), bod.getY() + velikost,
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
	}
	
	public void c1(){
		dt.line(bod.getX(), bod.getY() + (int)(0.4 * velikost),
				bod.getX() + (int)(0.25 * velikost), bod.getY());
		
		dt.line(bod.getX() + (int)(0.25 * velikost), bod.getY(), 
				bod.getX() + (int)(0.25 * velikost), bod.getY() + velikost);
	}
	
	public void c2(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + (int)(0.25 * velikost));
		
		dt.line(bod.getX(), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY());
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.3 * velikost));
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.3 * velikost), 
				bod.getX(), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY() + velikost, 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
	}
	
	public void c3(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY());
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY() + (int)(0.5 * velikost), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.5 * velikost));
		
		dt.line(bod.getX(), bod.getY() + velikost, 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
	}
	
	public void c4(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + (int)(0.5 * velikost));
		
		dt.line(bod.getX(), bod.getY() + (int)(0.5 * velikost), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.5 * velikost));
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
	}
	
	public void c5(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + (int)(0.5 * velikost));
		
		dt.line(bod.getX(), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY());
		
		dt.line(bod.getX(), bod.getY() + (int)(0.5 * velikost), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.5 * velikost));
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.5 * velikost), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() +  velikost);
		
		dt.line(bod.getX(), bod.getY() + velikost, 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY() + velikost, 
				bod.getX(), bod.getY() + (int)(0.8 * velikost));
	}
	
	public void c6(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + (int)(0.5 * velikost));
		
		dt.line(bod.getX(), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY());
		
		dt.line(bod.getX(), bod.getY() + (int)(0.5 * velikost), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.5 * velikost));
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.5 * velikost), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() +  velikost);
		
		dt.line(bod.getX(), bod.getY() + (int)(0.5 * velikost), 
				bod.getX(), bod.getY() +  velikost);
		
		dt.line(bod.getX(), bod.getY() + velikost, 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.2 * velikost));
	}
	
	public void c7(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY());
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(), 
				bod.getX(), bod.getY() + velikost);
	}
	
	public void c8(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY(),
				bod.getX() + (int)(0.5 * velikost), bod.getY());
		
		dt.line(bod.getX(), bod.getY() + (int)(0.5 * velikost),
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.5 * velikost));
		
		dt.line(bod.getX(), bod.getY() + velikost,
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
	}
	
	public void c9(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY());
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(),
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.5 * velikost));
		
		dt.line(bod.getX(), bod.getY() + (int)(0.5 * velikost),
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.5 * velikost));
		
		dt.line(bod.getX(), bod.getY(),
				bod.getX(), bod.getY() + (int)(0.5 * velikost));
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.5 * velikost),
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY() + velikost, 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
	}
	
	public void a(){
		dt.line(bod.getX(), bod.getY() + velikost, 
				bod.getX() + (int)(0.25 * velikost), bod.getY());
		
		dt.line(bod.getX() + (int)(0.25 * velikost), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
		
		dt.line(bod.getX() + (int)(0.12 * velikost), bod.getY() + (int)(0.5 * velikost), 
				bod.getX() + (int)(0.38 * velikost), bod.getY() + (int)(0.5 * velikost));
	}
	
	public void b(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY(),
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.25 * velikost));
		
		dt.line(bod.getX(), bod.getY() + (int)(0.5 * velikost),
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.25 * velikost));
		
		dt.line(bod.getX(), bod.getY() + (int)(0.5 * velikost),
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.75 * velikost));

		dt.line(bod.getX(), bod.getY() + velikost,
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.75 * velikost));
	}
	
	public void c(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY());
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(), 
				bod.getX( )+ (int)(0.5 * velikost), bod.getY() + (int)(0.1 * velikost));
		
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY() + velikost, 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost, 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.9 * velikost));
	}

	public void d(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.1 * velikost));
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.1 * velikost), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.9 * velikost));
	
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.9 * velikost), 
				bod.getX(), bod.getY() + velikost);
	}

	public void e(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY());
	
		dt.line(bod.getX(), bod.getY() + (int)(0.5 * velikost), 
				bod.getX() + (int)(0.3 * velikost), bod.getY() + (int)(0.5 * velikost));
		
		dt.line(bod.getX(), bod.getY() + velikost, 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
	}

	public void f(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY());
	
		dt.line(bod.getX(), bod.getY() + (int)(0.5 * velikost), 
				bod.getX() + (int)(0.3 * velikost), bod.getY() + (int)(0.5 * velikost));
	}
	
	public void g(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + velikost);
		
		dt.line(bod.getX() + (int)(0.2 * velikost), bod.getY() + (int)(0.5 * velikost), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.5 * velikost));
		
		dt.line(bod.getX(), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY());
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(), 
				bod.getX( )+ (int)(0.5 * velikost), bod.getY() + (int)(0.1 * velikost));
		
		dt.line(bod.getX(), bod.getY() + velikost, 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost,
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.5 * velikost));
		
		dt.line(bod.getX() + (int)(0.2 * velikost), bod.getY() + (int)(0.5 * velikost), 
				bod.getX() + (int)(0.2 * velikost), bod.getY() + (int)(0.6 * velikost));
	}

	public void h(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY() + (int)(0.5 * velikost), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.5 * velikost));
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
	}

	public void i(){
		dt.line(bod.getX() + (int)(0.25 * velikost), bod.getY(), 
				bod.getX() + (int)(0.25 * velikost), bod.getY() + velikost);
	}

	public void j(){
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY() + velikost, 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY() + velikost, 
				bod.getX(), bod.getY() + (int)(0.8 * velikost));
	}
	
	public void k(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY() + (int)(0.5 * velikost), 
				bod.getX() + (int)(0.5 * velikost), bod.getY());
		
		dt.line(bod.getX(), bod.getY() + (int)(0.5 * velikost), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
	}
	
	public void l(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY() + velikost, 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
	}
	
	public void m(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY(),
				bod.getX() + (int)(0.25 * velikost), bod.getY() + (int)(0.4 * velikost));
		
		dt.line(bod.getX() + (int)(0.25 * velikost), bod.getY() + (int)(0.4 * velikost),
				bod.getX() + (int)(0.5 * velikost), bod.getY());
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
	}
	
	public void n(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY(),
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
		
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
	}
	
	public void o(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY(),
				bod.getX() + (int)(0.5 * velikost), bod.getY());
		
		dt.line(bod.getX(), bod.getY() + velikost,
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
	}
	
	public void p(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY(),
				bod.getX() + (int)(0.5 * velikost), bod.getY());
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(),
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.5 * velikost));
		
		dt.line(bod.getX(), bod.getY() + (int)(0.5 * velikost), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.5 * velikost));
	}
	
	public void q(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY(),
				bod.getX() + (int)(0.5 * velikost), bod.getY());
		
		dt.line(bod.getX(), bod.getY() + velikost,
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
		
		dt.line(bod.getX() + (int)(0.4 * velikost), bod.getY() + (int)(0.9 * velikost), 
				bod.getX() + (int)(0.6 * velikost), bod.getY() + (int)(1.1 * velikost));
	}
	
	public void r(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY(),
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.25 * velikost));
		
		dt.line(bod.getX(), bod.getY() + (int)(0.5 * velikost),
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.25 * velikost));
		
		dt.line(bod.getX(), bod.getY() + (int)(0.5 * velikost),
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);

	}
	
	public void s(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY());
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.3 * velikost));
		
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + (int)(0.3 * velikost));
		
		dt.line(bod.getX(), bod.getY() + (int)(0.3 * velikost), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.7 * velikost));
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY() + (int)(0.7 * velikost), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY() + velikost, 
				bod.getX() + (int)(0.5 * velikost), bod.getY()  + velikost);
		
		dt.line(bod.getX(), bod.getY() + velikost, 
				bod.getX(), bod.getY() + (int)(0.7 * velikost));
	}
	
	public void t(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY());
		
		dt.line(bod.getX() + (int)(0.25 * velikost), bod.getY(), 
				bod.getX() + (int)(0.25 * velikost), bod.getY() + velikost);
	}
	
	public void u(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX(), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY() + velikost, 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
	}
	
	public void v(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX() + (int)(0.25 * velikost), bod.getY() + velikost);
		
		dt.line(bod.getX() + (int)(0.25 * velikost), bod.getY() + velikost, 
				bod.getX() + (int)(0.5 * velikost), bod.getY());
	}
	
	public void w(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX() + (int)(0.125 * velikost), bod.getY() + velikost);
		
		dt.line(bod.getX() + (int)(0.125 * velikost), bod.getY() + velikost, 
				bod.getX() + (int)(0.25 * velikost), bod.getY() + (int)(0.625 * velikost));
		
		dt.line(bod.getX() + (int)(0.25 * velikost), bod.getY() + (int)(0.625 * velikost), 
				bod.getX() + (int)(0.375 * velikost), bod.getY() + velikost);
		
		dt.line(bod.getX() + (int)(0.375 * velikost), bod.getY() + velikost, 
				bod.getX() + (int)(0.5 * velikost), bod.getY());
	}
	
	public void x(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(), 
				bod.getX(), bod.getY() + velikost);
	}
	
	public void y(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX() + (int)(0.25 * velikost), bod.getY() + (int)(0.5 * velikost));
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(), 
				bod.getX() + (int)(0.25 * velikost), bod.getY() + (int)(0.5 * velikost));
		
		dt.line(bod.getX() + (int)(0.25 * velikost), bod.getY() + (int)(0.5 * velikost), 
				bod.getX() + (int)(0.25 * velikost), bod.getY() + velikost);
	}
	
	public void z(){
		dt.line(bod.getX(), bod.getY(), 
				bod.getX() + (int)(0.5 * velikost), bod.getY());
		
		dt.line(bod.getX() + (int)(0.5 * velikost), bod.getY(), 
				bod.getX(), bod.getY() + velikost);
		
		dt.line(bod.getX(), bod.getY() + velikost, 
				bod.getX() + (int)(0.5 * velikost), bod.getY() + velikost);
		
	}
}